<template>
	<view class="detail">
		<outletSearch ></outletSearch>
		<!-- 搜索列表 -->
		<view class="list">
			<view class="card" v-for="(item,index) in searchs" :key="item.id">
				<view class="card_top">
					<view class="left">
						<view class="name">{{item.name}}</view>
						<view class="text">
							<view class="status">{{item.status}}</view>
						</view>
						<view class="span1">
							<view class="label1">{{item.label1}}</view>
						</view>
						<view class="span1">
							<view class="label2">{{item.label2}}</view>
						</view>
					</view>
					<view class="right">
						<view class="distance">{{item.distance}}km</view>
					</view>
				</view>
				<view class="card_bottom">
					<image src="/static/img/d.png"  ></image>
					<view class="place">{{item.place}}</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import outletSearch from 'pages/outlets/components/outlet-search.vue'
	export default {
		components:{
			outletSearch
		},
		data() {
			return {
				searchs: [{
						id: 0,
						name: "深圳天健世纪支行",
						status: "营业中",
						label1: "对外",
						label2: "对私",
						distance: 1.03,
						place: "深圳市福田区民田路华融大厦一层110、111",
					},
					{
						id: 1,
						name: "深圳天健世纪支行",
						status: "营业中",
						label1: "对外",
						label2: "对私",
						distance: 1.03,
						place: "深圳市福田区民田路华融大厦一层110、111",
					},
					{
						id: 2,
						name: "深圳天健世纪支行",
						status: "营业中",
						label1: "对外",
						label2: "对私",
						distance: 1.03,
						place: "深圳市福田区民田路华融大厦一层110、111",
					},
					{
						id: 3,
						name: "深圳天健世纪支行",
						status: "营业中",
						label1: "对外",
						label2: "对私",
						distance: 1.03,
						place: "深圳市福田区民田路华融大厦一层110、111",
					},
					{
						id: 4,
						name: "深圳天健世纪支行",
						status: "营业中",
						label1: "对外",
						label2: "对私",
						distance: 1.03,
						place: "深圳市福田区民田路华融大厦一层110、111",
					},
				],
			};
		},
		mounted() {},
		methods: {}

	};
</script>

<style scoped lang="scss">
	.detail {
		width: 100%;
		height: 100%;

		//搜索
		.top {
			background-color: #fff;
			padding: 0 28rpx 16rpx 28rpx;
			display: flex;
			justify-content: flex-start;
			box-sizing: border-box;

			image {
				padding-top: 25rpx;
				width: 48rpx;
				height: 48rpx;
			}

			.name {
				padding: 33rpx 25rpx 0 12rpx;
				font-size: 28rpx;
				line-height: 28rpx;
				color: #333;
			}
		}

		//搜索列表
		.list {
			margin-top: 16rpx;
			.card {
				background-color: #fff;
				padding: 32rpx 28rpx 28rpx 28rpx;
				margin-bottom: 16rpx;
				.card_top {
					display: flex;
					justify-content: space-between;
					position: relative;
					color: #999;

					.left {
						display: flex;
						flex-wrap: nowrap;
						font-size: 20rpx;
						line-height: 20rpx;
						.name {
							font-size: 32rpx;
							font-weight: 600;
							color: #333;
							line-height: 32rpx;
						}

						.text {
							width: 76rpx;
							height: 36rpx;
							background: linear-gradient(315deg, #ff2d1b, #ff977b);
							border-radius: 8rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							margin: 0 16rpx 0 20rpx;
							.status {
								color: #fff;
							}
						}
						.span1 + .span1 {
							margin-left: 12rpx;
						}
						.span1 {
							width: 56rpx;
							height: 36rpx;
							border: 2rpx solid #ddd;
							border-radius: 10rpx;
							display: flex;
							justify-content: center;
							align-items: center;
						}
					}

					.right {
						display: flex;
						flex-wrap: nowrap;
						.distance {
							padding-right: 30rpx;
							font-size: 22rpx;
							line-height: 22rpx;
						}
						image {
							width: 50rpx;
							height: 50rpx;
						}
					}
					//图片
					&:after {
					content: "";
					position: absolute;
					right: 0rpx;
					top: -6rpx;
					background-image: url("/static/img/arrow_right.png");
					background-size: cover;
					width: 40rpx;
					height: 40rpx;
					}
				}

				.card_bottom {
					display: flex;
					justify-content: flex-start;
					padding-top: 28rpx;
					image {
						height: 32rpx;
						width: 32rpx;
					}
					.place {
						font-size: 24rpx;
						line-height: 24rpx;
						color: #999;
					}
				}
			}

		}
	}
</style>
